Feature: user login function

  @sprint-2
  Scenario: user login test
    Given orangehrm website was opened in browser
    Then the login page shows
    Then input user name "Admin"
    Then input user password "admin123"
    And click user logon commit button
    Then dashboard page shows

  Scenario: user login system without username
    Given orangehrm website was opened in browser
    Then the login page shows
    Then input user name ""
    Then input user password "admin123"
    And click user logon commit button
    Then login page show username "Required" warning

  Scenario: user login system without password
    Given orangehrm website was opened in browser
    Then the login page shows
    Then input user name "Admin"
    Then input user password ""
    And click user logon commit button
    Then login page show password "Required" warning

  Scenario: user login system without username and password
    Given orangehrm website was opened in browser
    Then the login page shows
    Then input user name ""
    Then input user password ""
    And click user logon commit button
    Then login page show username "Required" warning
    Then login page show password "Required" warning

  Scenario: user login system with incorrect username
    Given orangehrm website was opened in browser
    Then the login page shows
    Then input user name "Admin1"
    Then input user password "admin123"
    And click user logon commit button
    Then login page show "Invalid credentials" error message

  Scenario: user login system with incorrect password
    Given orangehrm website was opened in browser
    Then the login page shows
    Then input user name "Admin"
    Then input user password "admin123000"
    And click user logon commit button
    Then login page show "Invalid credentials" error message

  Scenario: user login system with incorrect username and password
    Given orangehrm website was opened in browser
    Then the login page shows
    Then input user name "Admin1"
    Then input user password "admin1233"
    And click user logon commit button
    Then login page show "Invalid credentials" error message

  @tags-2
  Scenario: user logout test
    Given orangehrm website was opened in browser
    Then the login page shows
    Then input user name "Admin"
    Then input user password "admin123"
    And click user logon commit button
    Then dashboard page shows
    And user click logout button to quite system
    Then the login page shows